package wst.ai.pojo.interviewrecord;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 面试记录实体类
 */
@TableName("interview_record")
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class InterviewRecord {
    @TableId("id")
    private String id;
//    候选人id
    private String candidateId;
//    职位名称，快照名称，原字段可能会更改
    private String jobName;
//    应聘者的回答内容
    private String answerContent;
//    整个面试所花费的总时间，单位:秒
    private Integer takeTime;
//    面试结果详情
    private String result;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedTime;
}
